package com.broadsoft.cluster.smartcluster.message;


/**
 * Wrap runnable to carry forward the context information
 */
public class ExecutionContextAwareRunnable implements Runnable {
    private final Runnable task;

    public ExecutionContextAwareRunnable(Runnable task) {
        this(task, false);
    }

    public ExecutionContextAwareRunnable(Runnable task, boolean useNewContext) {
        this.task = task;
    }

    public void run() {
        task.run();
    }
}
